/**
 *  created by lllwx
 *  Date: 2021/7/2
 *  Time: 5:38 下午
 *  Version: 1.0
 *  For: todo示例
 */
import { defineStore } from 'pinia';

export const useToDoStore = defineStore({
  id: 'todo',
  state() {
    return {
      list: ['a', 'b'],
    };
  },
  getters: {
    getList: (state) => state.list,
  },
  actions: {
    setList(list) {
      this.list = list;
    },
  },
});
